<template>
  <div @click="father">
    <p @click.stop ='one'>.stop - 阻止事件冒泡</p>
    <a href="http://www.baidu.com" @click.prevent.stop>去百度</a>
    <p @click.once="tow">点击观察事件函数执行几次</p>
  </div>
</template>

<script>
export default {
   methods:{
       father(){
           console.log('father执行了')
       },
       one(){
           console.log('p标签打印')
       },
      tow(){
         console.log('p标签被点击了')
      }
   }
}
</script>

<style>

</style>